home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / CAD / LASI35B2.ARJ / MAKETXT.HLP < prev    next >
Text File  |  1991-08-01  |  5KB  |  115 lines

  1.  
  2. Text Generation Method
  3.  
  4.                         Text Generation with LASI
  5.  
  6.  
  7.   There is no "text" component (or object) in a LASI drawing system.
  8.   Instead, recognizing that a limited amount of text often needs to be
  9.   added to a drawing or layout, a method of text generation has been
  10.   provided. The method makes text characters from path objects. The
  11.   characters are the same as any other path object, an may be changed with
  12.   normal path editing commands.
  13.  
  14.   Each character is read from the pattern file TXT.DBD. This file is a
  15.   random access file which contains an single record of 128 bytes for each
  16.   of 96 characters. At entry time, the position, size of the text and the
  17.   character spacing is requested. The text string is then simply typed in
  18.   and terminated by <enter>. The layer and width of the text are taken from
  19.   the default path parameters.
  20.  
  21.   Using paths for text has advantages and disadvantages. Path and vertex
  22.   space is used up. However, text may be manipulated the same as a path,
  23.   and the conversion to other drawing systems is much easier.
  24.  
  25.  
  26. The Character Field
  27.  
  28.   Characters start as little cells containing a drawing of a character. The
  29.   data format of the character drawing is quite different from a cell and
  30.   will be describe later. A character is drawn as a rank 1 cell using paths
  31.   (of 0 width) on a 16x16 field of basic drawing units. The lower left
  32.   corner of the field is position 0,0. The vertices of the paths fall on
  33.   the basic unit grid points. The vertices may be on any grid point except
  34.   15,15.
  35.  
  36.  
  37.                                               15
  38.                 . . . . . . . . . . . . . . . x 15  (15,15 not used)
  39.                 . . . . . . . . . . . . . . . .
  40.                 . . . . . . . . . . . . . . . .
  41.                 . . . . . . . . . . . . . . . .
  42.                 . . . . . . . . . . . . . . . .
  43.                 . . . . . . . . . . . . . . . .
  44.                 . . . . . . . . . . . . . . . .
  45.                 . . . . . . . . . . . . . . . .  ^
  46.                 . . . . . . . . . . . . . . . .  |
  47.                 . . . . . . . . . . . . . . . .  Y
  48.                 . . . . . . . . . . . . . . . .
  49.                 . . . . . . . . . . . . . . . .
  50.                 . . . . . . . . . . . . . . . .
  51.                 . . . . . . . . . . . . . . . .
  52.                 . . . . . . . . . . . . . . . .
  53.       (origin)0 . . . . . . . . . . . . . . . .
  54.                 0
  55.                             X -->
  56.  
  57.                 Character Drawing Field in basic units
  58.  
  59.  
  60.   Once a character cell is drawn, the program MAKETXT.EXE is used to
  61.   install the character in the TXT.DBD file.
  62.  
  63.   There can be any character drawing in the pattern file corresponding to a
  64.   given typed character. In fact, different TXT.DBD files (with different
  65.   names) with different drawings or fonts can be kept for different uses.
  66.  
  67.  
  68. The TXT.DBD File
  69.  
  70.   The pattern file TXT.DBD is ninety-six 128 byte records long. Each record
  71.   corresponds to an ASCII character starting at decimal 32 (space) and
  72.   ending at decimal 127 (delete, non-printing). When a character is typed
  73.   under LASI, the correct record is found and the information is used to
  74.   make path objects in the drawing. The records are randomly written by the
  75.   MAKETXT.EXE program by typing the desired character and then giving the
  76.   name of the cell which contains the character drawing.
  77.  
  78.   The vertices of the path pattern are written in a single byte of a record
  79.   in the form of the X-coordinate as the upper 4 bits and the Y-coordinate
  80.   as the lower 4 bits (nibbles). The coordinates may then be only the
  81.   numbers 0-15. The coordinate combination (15,15) is however prohibited
  82.   because it is used to indicate the end of a path.
  83.  
  84.   A record therefore contains vertex coordinate bytes from 0-254, with 255
  85.   decimal (or FF in Hex) bytes marking the end of a path. The remaining
  86.   bytes in a record are always filled with FF bytes to prevent further
  87.   paths being made as the record is read.
  88.  
  89.   The maximum number of vertices that a record can hold is dependent on the
  90.   number of independent paths, but can be determined from:
  91.  
  92.               total no. vertices = 128 - total no. paths
  93.  
  94.  
  95. Text and the CALMA
  96.  
  97.   The text made by LASI is treated like any path or poly object by the
  98.   CALMA when converted using LASI2CSF.EXE. Paths of 0 width or poly are
  99.   converted to boundaries. Boundaries however are automatically closed by
  100.   the CALMA itself, which will cause characters made from poly to be
  101.   distorted by the CALMA. The solution is of course to give a character
  102.   some width. This then will make the CALMA think that the character is a
  103.   path and it will not be closed. If characters are to be converted to
  104.   CALMA, then one should create a TXT.DBD file that contains characters
  105.   that look good with the desired width.
  106.  
  107.  
  108. Character Cell Collection
  109.  
  110.   The cell collection that contains all the cells that are used to make the
  111.   text characters is not usually included with the LASI System
  112.   distribution. If you don't have a copy of this collection, and it is not
  113.   available from your distribution source, it will be sent on request.
  114.  
  115.